﻿using Nop.Admin.Models.Common;
using Nop.Web.Framework.Mvc;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Nop.Admin.Models.XJ
{
	public class EquipmentStockListModel
	{
		public EquipmentStockListModel()
		{
			AvailableCategories = new List<SelectMenuModel>();
			AvailablePlaces = new List<SelectListItem>();
			AvailableStates = new List<SelectListItem>();
		}
		public int MaintenanceId { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public int SearchPlaceId { get; set; }
		/// <summary>
		/// 设施设备分类
		/// </summary>
		[UIHint("SelectMenu")]
		public int SearchCategoryId { get; set; }
		/// <summary>
		/// 设施设备
		/// </summary>
		public int SearchEquipmentId { get; set; }
		public int SearchState { get; set; }
		public string SearchName { get; set; }
		/// <summary>
		/// 品牌
		/// </summary>
		public string SearchManufacturer { get; set; }
		/// <summary>
		/// 规格型号
		/// </summary>
		public string SearchSpecification { get; set; }
		public string SearchLocation { get; set; }
		public int[] SelectedProductIds { get; set; }
		/// <summary>
		/// 分类
		/// </summary>
		public IList<SelectMenuModel> AvailableCategories { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public IList<SelectListItem> AvailablePlaces { get; set; }
		/// <summary>
		/// 状态
		/// </summary>
		public IList<SelectListItem> AvailableStates { get; set; }
	}

	public class EquipmentStockModel : BaseNopEntityModel
	{
		public EquipmentStockModel()
		{
			AvailablePlaces = new List<SelectListItem>();
		}
		/// <summary>
		/// 巡检点
		/// </summary>
		public int PlaceId { get; set; }
		/// <summary>
		/// 使用区域具体位置
		/// </summary>
		public string Location { get; set; }
		/// <summary>
		/// 设施设备Id
		/// <see cref="XJEquipment"/>
		/// </summary>
		public int EquipmentId { get; set; }
		/// <summary>
		/// 名称
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 品牌
		/// </summary>
		public string Manufacturer { get; set; }
		/// <summary>
		/// 规格型号
		/// </summary>
		public string Specification { get; set; }
		/// <summary>
		/// 单价
		/// </summary>
		public decimal Price { get; set; }
		/// <summary>
		/// 数量
		/// </summary>
		public int Amount { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public int CustomerId { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedOn { get; set; }
		/// <summary>
		/// 开始使用时间
		/// </summary>
		[UIHint("DateNullable")]
		public DateTime? StartOn { get; set; }
		/// <summary>
		/// 分类
		/// </summary>
		public IList<SelectListItem> AvailablePlaces { get; set; }
	}
}